<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>成功跳转提示</title>
    <style type="text/css">
    *{ padding: 0; margin: 0; }
    body{ background: #fff; font-family: '微软雅黑'; color: #333;}
    .message{width: 600px;height: 250px;margin:auto;border:1px solid #4cae4c;margin-top: 30px;border-radius: 10px;}
    .head{width: 560px;height: 50px;padding:0px 20px;background: #5cb85c;line-height:50px;color:#FFFFFF;padding-top: 5px;border-top-right-radius: 10px;border-top-left-radius: 10px;}
    .content{height: 120px;width: 100%;}
    .success ,.error{text-align: center;margin-top: 30px;}
    .jump{text-align: center;margin-top: 20px;line-height: 30px;}
    </style>
</head>
<body>
<div class="message">
    <div class="head"><h3>来自 <?php echo $_SERVER['HTTP_HOST']; ?> 的提示信息:</h3></div>
    <div class="content">

        <p class="success"> <?php echo $msg; ?></p>
        <p class="jump">
            <!-- 等待时间： <b id="wait"><?php echo($waitSecond); ?></b> -->
            <b id="wait" style="font-size:30px;"><?php echo $time; ?></b>秒后进行&nbsp;&nbsp;
            <a id="href" href="<?php if(is_null($jumpUrl)){echo 'javascript:history.go(-1);';}else{echo($jumpUrl);} ?>">跳转</a>&nbsp;&nbsp;
            或直接返回&nbsp;&nbsp;<a id="href1" href="<?php echo __APP__; ?>">首页</a>
        </p>
    </div>
</div>
<script type="text/javascript">
    (function(){
        var wait = document.getElementById('wait'),href = document.getElementById('href').href;
        var interval = setInterval(function(){
            var time = --wait.innerHTML;
            if(time <= 0) {
                location.href = href;
                clearInterval(interval);
            };
        }, 1000);
    })();
</script>
</body>
</html>